package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Basic_RoutingMaterial", description = "工艺物料表")
@TableName(value = "Basic_RoutingMaterial")
public class BasicRoutingMaterial extends FBaseEntity implements Serializable {


    
    @NotNull(message="[工艺工序ID]不能为空")
    @ApiModelProperty("工艺工序ID")
    @TableField(value = "routingProcessId")
    private Long routingProcessId;
    
    @NotNull(message="[物料ID]不能为空")
    @ApiModelProperty("物料ID")
    @TableField(value = "materialId")
    private Long materialId;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("备注")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "remark")
    private String remark;
    
    @NotBlank(message="[需求数量]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("需求数量")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "hQty")
    private String hQty;
    
    @NotNull(message="[投入顺序]不能为空")
    @ApiModelProperty("投入顺序")
    @TableField(value = "subNo")
    private Long subNo;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("投入提前时间")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "leadTime")
    private String leadTime;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("损失率")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "lossRate")
    private String lossRate;






}

